package com.qfjy.jms.controller;

import com.qfjy.jms.service.CodeService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
@Controller
@RequestMapping("made")
public class MsgController {
    @Resource
    private CodeService codeService;
    @GetMapping("/code")
    @ResponseBody
    public String code(){
        codeService.codeMake();
        return null;
    }
    @GetMapping("/ckeck")
    @ResponseBody
    public Boolean ckilck(@RequestParam("code") String code) {

        Boolean aBoolean = codeService.codeCheck(code);
      return aBoolean;

    }
}
